const { ipcRenderer, BrowserWindow } = require('electron');


ipcRenderer.on('webview-print-render', (event,deviceName) => {
  Console.log('收到');
  //执行渲染
  let html = '';
  for (let index = 0; index < 5; index++) {
    html+=`<div class="div1"><p id="time">${deviceName}hahahah</p> </div>`
  }
  document.getElementById('bd').innerHTML = html;

  ipcRenderer.send('do', deviceName);
  // ipcRenderer.sendToHost('webview-print-do')
})
